package it.tcon.xbeedriver;

import com.rapplogic.xbee.util.ByteUtils;

public class Utils extends ByteUtils {
	
	
	public static int[] addressConcat(int[] a1, int[] a2){
		int[] a3 = new int[(a1.length + a2.length)];	
		for(int i = 0; i < a1.length; i++)
			a3[i] = a1[i];
		for(int i = 0; i < a2.length; i++)
			a3[i+a1.length] = a2[i];
		return a3;
	}
	
	public static String address0xParser(String string){
		return string.replaceAll("0x", "");	
	}
	public static int[] address0xParserInt(String string){
		return stringToIntArray(address0xParser(string));
	}
	
	
	
}
